class AudioListModel {
  int vid;
  String courseTitle;
  String profile;
  String audioUrl;
  String soundContent;
  String language;
  int tid;
  String headImg;
  String name;
  String time;
  int like;
  int collect;
  int player;
  bool isRead;
  String labelName;
  int labelId;

  AudioListModel(
      {this.vid,
        this.courseTitle,
        this.profile,
        this.audioUrl,
        this.soundContent,
        this.language,
        this.tid,
        this.headImg,
        this.name,
        this.time,
        this.like,
        this.collect,
        this.player,
        this.isRead,
        this.labelName,
        this.labelId});

  AudioListModel.fromJson(Map<String, dynamic> json) {
    vid = json['vid'];
    courseTitle = json['course_title'];
    profile = json['profile'];
    audioUrl = json['audio_url'];
    soundContent = json['sound_content'];
    language = json['language'];
    tid = json['tid'];
    headImg = json['head_img'];
    name = json['name'];
    time = json['time'];
    like = json['like'];
    collect = json['collect'];
    player = json['player'];
    isRead = json['is_read'];
    labelName = json['label_name'];
    labelId = json['label_id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['vid'] = this.vid;
    data['course_title'] = this.courseTitle;
    data['profile'] = this.profile;
    data['audio_url'] = this.audioUrl;
    data['sound_content'] = this.soundContent;
    data['language'] = this.language;
    data['tid'] = this.tid;
    data['head_img'] = this.headImg;
    data['name'] = this.name;
    data['time'] = this.time;
    data['like'] = this.like;
    data['collect'] = this.collect;
    data['player'] = this.player;
    data['is_read'] = this.isRead;
    data['label_name'] = this.labelName;
    data['label_id'] = this.labelId;
    return data;
  }
}
